

$(document).ready(function(){
	getDateList(null,1);
	
});



function  getDateList(condition,current){
	$("#thislist").html("");
	   $.ajax({
        url: urlcore + "/api/flowDetail/selectTransferList?current=" +current+"&data="+condition,
        type: "get",
        dataType: 'json',
        contentType: "application/json;charset=utf-8",
        success: function (data) {
        	var da=data.data.records;
        	var html="",status="",uptDatetime="- -";
        	for(var i=0;i<da.length;i++){
        	
        	    html+= " <tr >\n" +
			            " <td>" + (i + 1) + "</td>\n" +
			            " <td>" + da[i].userName+ "</td>\n" +
			            " <td>" + da[i].phone + "</td>\n" +
			            " <td><a href=\"transferOut_list.html?userId=" +da[i].muserId + "\">"+da[i].totalMoney+"</td>\n" +
			            " </tr>";
        	}
        	$("#thislist").append(html);
        	     $("#pager").pager({
                pagenumber: current,
                pagecount: data.data.pages,
                totalcount: data.data.total,
                buttonClickCallback: PageClick
            });
        	
        }
    });
	
}

PageClick = function (pageclickednumber) {
		var condition=$("#name").val();
	    getDateList(condition,pageclickednumber);
}

function searchList(){
	var condition=$("#name").val();
	    getDateList(condition,1);
}
